package org.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName take_position
 */
@TableName(value ="take_position")
@Data
public class TakePosition implements Serializable {
    /**
     * 持仓id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 股票id
     */
    private Integer stockId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 成交编号
     */
    private String volumeCode;

    /**
     * 成交价格
     */
    private BigDecimal volumePrice;

    /**
     * 成交时间
     */
    private Date createDate;

    /**
     * 
     */
    private Integer isdel;

    /**
     * 111
     */
    private Integer num;

    /**
     * 
     */
    private BigDecimal averagePrice;
    @TableField(exist = false)
    private String stockName;
    @TableField(exist = false)
    private String stockCode;
    @TableField(exist = false)
    private BigDecimal latestPrice;
    @TableField(exist = false)
    private BigDecimal percentageChange;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private Double sellPrice;
    @TableField(exist = false)
    private Integer xvnum;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}